package org.dllwh.milvus.v2;

import io.milvus.param.highlevel.collection.response.ListCollectionsResponse;
import io.milvus.v2.service.collection.response.ListCollectionsResp;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * <p>
 * Today the best performance as tomorrow the newest starter!
 *
 * @ClassName MilvusCollectHelper
 * @Description Milvus V2 集合操作
 * @Date 2025-05-30 13:48
 * @版本 V 1.0.1
 * @since JDK 17
 */
@Slf4j
public class MilvusCollectHelper {

    public static void listCollections() {
        ListCollectionsResp response = MilvusConnectHelper.getMilvusClientV2().listCollections();
        List<String> collectionList = response.getCollectionNames();
        collectionList.forEach(System.out::println);
    }
}
